{include file="public/_meta" /}
<title></title>
</head>

<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>资金记录 <span class="c-gray en">&gt;</span> 提现申请<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>&nbsp;&nbsp;
    <!-- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right:6px " onclick="excel()" title="导出"><i class="Hui-iconfont">&#xe644;</i></a> -->
</nav>
<div class="page-container">
    <div class="text-c">
        <form class="Huiform" method="get" action="">
            <input type="text" class="input-text" style="width:150px" placeholder="用户姓名、手机号" id="" name="us_name" value="">
            日期范围：
            <input type="text" class="input-text Wdate" name="start" id="countTimestart" onfocus="selecttime(1)"
                   value="{$Request.get.start|default=''}" size="17" class="date" readonly style="width:140px;">
            -
            <input type="text" class="input-text Wdate" name="end" id="countTimeend" onfocus="selecttime(2)"
                   value="{$Request.get.end|default=''}" size="17" class="date" readonly style="width:140px;">
            <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </form>
    </div>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">累计金额：<strong>{$a}</strong> 元</span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span>
    </div>

    <div class="mt-20">
        <table class="table table-border  table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th>id</th>
                <th>账户姓名</th>
                <th>手机号</th>
                <th>申请金额</th>
                <th>持卡人姓名</th>
                <th>开户行</th>
                <th>银行卡号</th>
                <th>银行分行</th>
                <th>申请时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name='list' id="vo"}
            <tr class="text-c">
                <td>{$vo.id}</td>
                <td>{$vo.us_nickname}</td>
                <td>{$vo.us_tel}</td>
                <td>{$vo.money}</td>


                {volist name='$vo.bank' id="v"}
                <td>{$v.card_holder}</td>
                <td>{$v.bank_name}</td>
                <td>{$v.bank_account}</td>
                <td>{$v.bank_branch_name}</td>
                {/volist}

                <td>{$vo.add_time}</td>
                <td class="td-manage">
                    <a href="javascript:;" onclick="change({$vo.id},1,'tx_status')">[通过]</a>
                    <a href="javascript:;" onclick="change2({$vo.id},2,'tx_status')">[驳回]</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="pages" style="margin:20px;float: right; ">{$list|raw}</div>
    </div>
    {include file="public/_footer" /}
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
    <script type="text/javascript">
        $('select[name="wa_type"]').val({$Request.get.wa_type});

        function create(id, url, key) {
            var url = "{:url('" + url + "')}?id=" + id;
            creatIframe(url, key);
        }
        function excel(){
            var url = "{:url('excel')}";
            creatIframe(url,'表格导出');
        }
        function change(id,value,key){
            layer.confirm('确定要审批么？', {
                btn: ['确定', '取消']
            }, function(index, layero){
                $.ajax({
                    type: "post",
                    url: "{:url('gchange')}",
                    data: {id:id,value:value,key:key},
                    success: function(data) {
                        if(data.code){
                            layer.msg(data.msg);
                            setTimeout("window.location='';",500);
                        }
                    }
                });
            });
        }

        function change2(id,value,key){
            layer.confirm('确定要审批么？', {
                btn: ['确定', '取消']
            }, function(index, layero){
                $.ajax({
                    type: "post",
                    url: "{:url('gchange2')}",
                    data: {id:id,value:value,key:key},
                    success: function(data) {
                        if(data.code){
                            layer.msg(data.msg);
                            setTimeout("window.location='';",500);
                        }
                    }
                });
            });
        }

        function del(id, key) {
            layer.confirm('确定要删除么？', {
                btn: ['确定', '取消']
            }, function(index, layero) {
                $.ajax({
                    type: "post",
                    url: "{:url('Every/allDel')}",
                    data: { id: id, key, key },
                    success: function(data) {
                        layer.msg(data.msg);
                        if (data.code == 1) {
                            setTimeout(function() {
                                location.href = data.url;
                            }, 1000);
                        }
                    }
                });
            });
        }

    </script>
</body>

</html>